package com.zch.zhongchou.service;

import java.util.List;
import java.util.Map;

import com.zch.zhongchou.pojo.Projects;
import com.zch.zhongchou.pojo.User;

public interface UserService {
	public int add(User user);
	public int delete(int id);
	public int update(User user);
	public User getUserById(int id);
	public List<User> getAllUserByPage(String name,String phone,int sex,int pageIndex);
	public int getTotalCount(String name,String phone,int sex);
	public int getTotalPage(String name, String phone, int sex);
	User getUserByName(String strPhoneOrEmail);
	Map<String, Object> login(String strPhoneOrEmail, String password);
	List<Projects> getProjectsByusId(Integer usId);
}
